﻿
using System;
using System.Data;
using System.Data.SqlClient;
namespace Model
{
	
	/// <summary>	 
	/// 汇率
	/// </summary>
	public class DbExchange
	{ 
		#region DbExchange
		/// <summary>
		/// 
		/// </summary>
		public DbExchange()
		{
		}
		/// <summary>	 
		/// 
		/// </summary>
		public DbExchange(Int32 eId)
		{
			this.eId = eId;
		
		}
		/// <summary>	 
		/// 
		/// </summary>		
		public DbExchange(DataRow dr)
		{
			int.TryParse(Convert.ToString(dr["eId"]),out eId);
			this.name = Convert.ToString(dr["name"]);
			this.symbols = Convert.ToString(dr["symbols"]);
			this.invocation = Convert.ToInt16(dr["invocation"]);
			this.rate = Convert.ToDecimal(dr["rate"]);
			
		}
		#endregion
		
		
		#region EId
		private Int32 eId;
		/// <summary>	 
		/// 
		/// AutoInc
		/// PK
		/// </summary>
		public Int32 EId
		{
			get{ return eId; }
			set{ eId= value; }
		}
		#endregion
		
		#region Name
		private System.String name;
		/// <summary>	 
		/// 币种
		/// </summary>
		public System.String Name
		{
			get{ return name; }
			set{ name= value; }
		}
		#endregion
		
		#region Symbols
		private System.String symbols;
		/// <summary>	 
		/// 符号
		/// </summary>
		public System.String Symbols
		{
			get{ return symbols; }
			set{ symbols= value; }
		}
		#endregion
		
		#region Invocation
		private Int16 invocation;
		/// <summary>	 
		/// 状态
		/// </summary>
		public Int16 Invocation
		{
			get{ return invocation; }
			set{ invocation= value; }
		}
		#endregion
		
		#region Rate
		private Decimal rate;
		/// <summary>	 
		/// 汇率
		/// </summary>
		public Decimal Rate
		{
			get{ return rate; }
			set{ rate= value; }
		}
		#endregion

	}
}
